package com.cyzy.server.service;

import com.cyzy.pojo.dto.HuntCardUpdateDTO;
import com.cyzy.pojo.dto.RecruitCardDTO;
import com.cyzy.pojo.dto.RecruitCardUpdateDTO;
import com.cyzy.pojo.entity.HuntCard;
import com.cyzy.pojo.entity.RecruitCard;
import com.cyzy.pojo.vo.HuntCardVO;
import com.cyzy.pojo.vo.RecruitCardVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface RecruitCardService {

     /**
      * 保存招募帖子的信息
      * @param recruitCardDTO
      */
     RecruitCard save(RecruitCardDTO recruitCardDTO);

     /**
      * 返回页面展示的求职帖子列表
      * @return
      */
     List<RecruitCardVO> selectRecruitCardList();

    /**
     * 根据id返回招募帖子详情页
     * @param id
     * @return
     */
    RecruitCard selectRecruitCardById(Integer id);

    /**
     * 根据id修改求职帖子的信息
     */
    RecruitCard updateRecruitCardById(Integer id, RecruitCardUpdateDTO recruitCardUpdateDTO);

    @Transactional
    List<RecruitCardVO> selectRecruitCardListByUserId(Integer userId);


}
